import request from '@/utils/request'
// 查询采购基础列表
export function selectByPurchaseOrder(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectByPurchaseOrder',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function selectSupplierBySkc(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectSupplierBySkc',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function selectOverdueQuantity(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectOverdueQuantity',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function selectPurchasePriceData(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectPurchasePriceData',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function selectPurchaseOverallAll(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectPurchaseOverallAll',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function purchaseOverallStatistics(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/purchaseOverallStatistics',
    method: 'get',
    params: query
  })
}
// 采购综合分析数据

export function selectPurchaseOverallData(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectPurchaseOverallData',
    method: 'get',
    params: query
  })
}
// 采购综合分析报表
export function selectPurchaseOverallList(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectPurchaseOverallList',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function selectPurchasecostStatistics(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectPurchaseCostStatistics',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function selectPurchaseMonth(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectPurchaseMonth',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function selectPurchaseCost(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectPurchaseCost',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function selectConditionList(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectConditionList',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function selectPurchaseYear(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/selectPurchaseYear',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function listPurchaseBasicsDwd(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/list',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function listpurchaseorderremark(query) {
  return request({
    url: '/purchase/purchaseorderremark/list',
    method: 'get',
    params: query
  })
}
// 查询采购基础列表
export function synData(query) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/synData',
    method: 'get',
    params: query
  })
}
// 查询采购基础详细
export function getPurchaseBasicsDwd(id) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/' + id,
    method: 'get'
  })
}

// 新增采购基础
export function oneClickSync(data) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/oneClickSync',
    method: 'post',
    data: data
  })
}
// 新增采购基础
export function addPurchaseBasicsDwd(data) {
  return request({
    url: '/purchase/PurchaseBasicsDwd',
    method: 'post',
    data: data
  })
}
// 新增采购基础
export function purchaseorderremark(data) {
  return request({
    url: '/purchase/purchaseorderremark',
    method: 'post',
    data: data
  })
}
// 修改采购基础
export function updatePurchaseBasicsDwd(data) {
  return request({
    url: '/purchase/PurchaseBasicsDwd',
    method: 'put',
    data: data
  })
}

// 删除采购基础
export function delPurchaseBasicsDwd(id) {
  return request({
    url: '/purchase/PurchaseBasicsDwd/' + id,
    method: 'delete'
  })
}
